<?php
@session_start();

    include "../mysql/mysql.php";
    $aa = new mysql;
    $aa->link("");
    include "../myfunction.php";
    $bb= new myfunction;


if(@$_POST['tuidl'] == '安全退出'){ 
		@$_SESSION['userid'] = '';
		}



$res = $bb->findmanageuser(@$_SESSION['userid']);
if(@$_SESSION['userid'] == '' || $res == '' ){
	echo "<meta http-equiv=\"refresh\" content=\"0.1;url=loginm.php\">";
	}

	
?>

<style type="text/css">
#head{background-color:#FFF; 
      height: 80px; 
      box-shadow:3px 3px 3px #999999;
	  _webkit-box-shadow:3px 3px 3px #999999;
	  _moz-box-shadow:3px 3px 3px #999999;
 }

#head td{padding-right: 30px;
         padding-top: 5px;
        }


a{text-decoration:none;}

#img1{width: 50px; height: 50px;}





</style>

<div id="head">
    <table style="width:1100px; margin: auto;" align="center">
        <tr>
            <td style="width:150px"><img src="../img/head-logo.jpg" id="img1"/></td> 
            <td style="width: auto;"><h2>小&nbsp;锤&nbsp;子&nbsp;商&nbsp;城&nbsp;后&nbsp;台&nbsp;管&nbsp;理&nbsp;系&nbsp;统</h2></td>  
            <td style="width:20px">|</td>
            <td style="width:150px"> 欢迎您：&nbsp;<span id="adminname" style=" font-weight: bold;"><?php echo @$_SESSION['userid'] ?></span></td> 
            <td style="width:50px"><form method="post" action=""><input type="submit" name="tuidl" value="安全退出"></form></td>
        </tr>
    </table>
</div>